package com.xframe.common.config;

import com.xframe.common.core.service.login.RepeatLoginstrategyFactory;
import com.xframe.common.core.service.login.TokenServiceFactory;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;

@AutoConfiguration
public class FactoryAutoConfiguration {
    @Bean
    public RepeatLoginstrategyFactory repeatLoginstrategyFactory() {

        return new RepeatLoginstrategyFactory();
    }
    @Bean
    public TokenServiceFactory tokenServiceFactory() {
        return new TokenServiceFactory();
    }
}
